package org.shs.user.dao;

import static org.shs.common.config.SystemInitializer.sqlHandler;

import org.shs.user.form.LoginForm;
import org.shs.user.model.UserModel;


/**
 * This class implements the DAO interface class and provides
 * the implementation for all the Data access methods present.
 * <br/>
 * <br/><b>Created:</b>&nbsp;&nbsp; 12-Nov-2008 00:23:44
 *
 * @author anirvan
 *
 */
public class UserDAOImpl implements IUserDAO
{
   /* (non-Javadoc)
    * @see com.taxila.adz.user.dao.IUserDAO#validateUser(com.taxila.adz.user.form.LoginForm)
    */
   public UserModel validateUser(LoginForm userData) throws Exception
   {
      UserModel user = null;
      //Fire the query to retrieve the user details.
      user = (UserModel)sqlHandler.queryForObject("User.validateUser", userData);
      return user;
   }
   
}
